import axios from 'axios'


let loading = false
//拦截请求
axios.interceptors.request.use(function(config){
  loading = true
  return config
})

//拦截响应
axios.interceptors.response.use(function(config){
  loading = false
  return config
})

export { loading }